Optimal. Leaf size=89 \[ -\frac{x (3 d-4 e)+5 d-6 e}{12 \left (x^2+3 x+2\right )}-\frac{1}{36} (d+e) \log (1-x)+\frac{1}{144} (d+2 e) \log (2-x)-\frac{1}{36} (7 d-13 e) \log (x+1)+\frac{1}{144} (31 d-50 e) \log (x+2) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.530986, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192 \[ -\frac{x (3 d-4 e)+5 d-6 e}{12 \left (x^2+3 x+2\right )}-\frac{1}{36} (d+e) \log (1-x)+\frac{1}{144} (d+2 e) \log (2-x)-\frac{1}{36} (7 d-13 e) \log (x+1)+\frac{1}{144} (31 d-50 e) \log (x+2) \]
Antiderivative was successfully verified.
[In] Int[((d + e*x)*(2 - 3*x + x^2))/(4 - 5*x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 48.1095, size = 78, normalized size = 0.88 \[ \left (\frac{d}{144} + \frac{e}{72}\right ) \log{\left (- x + 2 \right )} - \left (\frac{d}{36} + \frac{e}{36}\right ) \log{\left (- x + 1 \right )} - \left (\frac{7 d}{36} - \frac{13 e}{36}\right ) \log{\left (x + 1 \right )} + \left (\frac{31 d}{144} - \frac{25 e}{72}\right ) \log{\left (x + 2 \right )} - \frac{30 d - 36 e + x \left (18 d - 24 e\right )}{72 \left (x^{2} + 3 x + 2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)*(x**2-3*x+2)/(x**4-5*x**2+4)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0891434, size = 80, normalized size = 0.9 \[ \frac{1}{144} \left (\frac{12 (-3 d x-5 d+4 e x+6 e)}{x^2+3 x+2}-4 (d+e) \log (1-x)+(d+2 e) \log (2-x)+4 (13 e-7 d) \log (x+1)+(31 d-50 e) \log (x+2)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[((d + e*x)*(2 - 3*x + x^2))/(4 - 5*x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.02, size = 90, normalized size = 1. \[ -{\frac{d}{24+12\,x}}+{\frac{e}{12+6\,x}}+{\frac{31\,\ln \left ( 2+x \right ) d}{144}}-{\frac{25\,\ln \left ( 2+x \right ) e}{72}}-{\frac{\ln \left ( -1+x \right ) d}{36}}-{\frac{\ln \left ( -1+x \right ) e}{36}}-{\frac{7\,\ln \left ( 1+x \right ) d}{36}}+{\frac{13\,\ln \left ( 1+x \right ) e}{36}}-{\frac{d}{6+6\,x}}+{\frac{e}{6+6\,x}}+{\frac{\ln \left ( x-2 \right ) d}{144}}+{\frac{\ln \left ( x-2 \right ) e}{72}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)*(x^2-3*x+2)/(x^4-5*x^2+4)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.698071, size = 101, normalized size = 1.13 \[ \frac{1}{144} \,{\left (31 \, d - 50 \, e\right )} \log \left (x + 2\right ) - \frac{1}{36} \,{\left (7 \, d - 13 \, e\right )} \log \left (x + 1\right ) - \frac{1}{36} \,{\left (d + e\right )} \log \left (x - 1\right ) + \frac{1}{144} \,{\left (d + 2 \, e\right )} \log \left (x - 2\right ) - \frac{{\left (3 \, d - 4 \, e\right )} x + 5 \, d - 6 \, e}{12 \,{\left (x^{2} + 3 \, x + 2\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*(x^2 - 3*x + 2)/(x^4 - 5*x^2 + 4)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.294017, size = 207, normalized size = 2.33 \[ -\frac{12 \,{\left (3 \, d - 4 \, e\right )} x -{\left ({\left (31 \, d - 50 \, e\right )} x^{2} + 3 \,{\left (31 \, d - 50 \, e\right )} x + 62 \, d - 100 \, e\right )} \log \left (x + 2\right ) + 4 \,{\left ({\left (7 \, d - 13 \, e\right )} x^{2} + 3 \,{\left (7 \, d - 13 \, e\right )} x + 14 \, d - 26 \, e\right )} \log \left (x + 1\right ) + 4 \,{\left ({\left (d + e\right )} x^{2} + 3 \,{\left (d + e\right )} x + 2 \, d + 2 \, e\right )} \log \left (x - 1\right ) -{\left ({\left (d + 2 \, e\right )} x^{2} + 3 \,{\left (d + 2 \, e\right )} x + 2 \, d + 4 \, e\right )} \log \left (x - 2\right ) + 60 \, d - 72 \, e}{144 \,{\left (x^{2} + 3 \, x + 2\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*(x^2 - 3*x + 2)/(x^4 - 5*x^2 + 4)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 17.0033, size = 1255, normalized size = 14.1 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)*(x**2-3*x+2)/(x**4-5*x**2+4)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.286233, size = 115, normalized size = 1.29 \[ \frac{1}{144} \,{\left (31 \, d - 50 \, e\right )}{\rm ln}\left ({\left | x + 2 \right |}\right ) - \frac{1}{36} \,{\left (7 \, d - 13 \, e\right )}{\rm ln}\left ({\left | x + 1 \right |}\right ) - \frac{1}{36} \,{\left (d + e\right )}{\rm ln}\left ({\left | x - 1 \right |}\right ) + \frac{1}{144} \,{\left (d + 2 \, e\right )}{\rm ln}\left ({\left | x - 2 \right |}\right ) - \frac{{\left (3 \, d - 4 \, e\right )} x + 5 \, d - 6 \, e}{12 \,{\left (x + 2\right )}{\left (x + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*(x^2 - 3*x + 2)/(x^4 - 5*x^2 + 4)^2,x, algorithm="giac")
[Out]